package com.example.myweb.Dto.User;
import com.example.myweb.Domain.Entity.User;

import java.time.LocalDateTime;

public class UserProfileResponseDTO {
    private Long userId;
    private String nickname;
    private String email;
    private String avatarUrl;
    private String bio;
    private LocalDateTime registrationTime;
    private String status;

    // 构造函数
    public UserProfileResponseDTO(Long userId, String nickname, String email, String avatarUrl, String bio, LocalDateTime registrationTime, User.UserStatus status) {
        this.userId = userId;
        this.nickname = nickname;
        this.email = email;
        this.avatarUrl = avatarUrl;
        this.bio = bio;
        this.registrationTime = registrationTime;
        this.status = String.valueOf(status);
    }

    // Getters and Setters
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public LocalDateTime getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(LocalDateTime registrationTime) {
        this.registrationTime = registrationTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}